home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / Mesa-1.2.1 / src-glu / Makefile < prev    next >
Encoding:
Makefile  |  1995-07-05  |  2.7 KB  |  126 lines

  1. # Makefile for GLU for Unix
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2.1
  5. # Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Makefile,v 1.13 1995/06/21 15:55:20 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.13  1995/06/21  15:55:20  brianp
  26. # renamed source files to 8.3 convention
  27. # added Linux ELF shared library target
  28. # Release 1.2.1
  29. #
  30. # Revision 1.12  1995/05/22  16:57:01  brianp
  31. # Release 1.2
  32. #
  33. # Revision 1.11  1995/05/01  14:50:38  brianp
  34. # added polygon tesselator files
  35. #
  36. # Revision 1.10  1995/04/17  13:50:07  brianp
  37. # use GLU_LIB variable
  38. #
  39. # Revision 1.9  1995/03/08  19:48:53  brianp
  40. # added -Y to makedepend
  41. #
  42. # Revision 1.8  1995/03/08  19:42:50  brianp
  43. # revamped for makedepend
  44. #
  45. # Revision 1.7  1995/03/04  19:40:02  brianp
  46. # updated for Make-config
  47. #
  48. # Revision 1.6  1995/03/01  21:06:44  brianp
  49. # replaced 'make' with $(MAKE)
  50. #
  51. # Revision 1.5  1995/02/28  20:42:26  brianp
  52. # added tess.c module
  53. #
  54. # Revision 1.4  1995/02/24  19:35:57  brianp
  55. # added VPATH for RCS
  56. #
  57. # Revision 1.3  1995/02/24  16:53:16  brianp
  58. # added netbsd target
  59. #
  60. # Revision 1.2  1995/02/24  15:34:27  brianp
  61. # updated for RCS
  62. #
  63. # Revision 1.1  1995/02/24  15:33:30  brianp
  64. # Initial revision
  65. #
  66.  
  67.  
  68. ##### MACROS #####
  69.  
  70. VPATH = RCS
  71.  
  72. INCDIR = ../include
  73. LIBDIR = ../lib
  74.  
  75. SOURCES = glu.c mipmap.c nurbs.c project.c quadric.c tess.c tesselat.c \
  76.     polytest.c
  77.  
  78. OBJECTS = $(SOURCES:.c=.o)
  79.  
  80.  
  81.  
  82. ##### RULES #####
  83.  
  84. .c.o:
  85.     $(CC) -c $(CFLAGS) $<
  86.  
  87.  
  88.  
  89. ##### TARGETS #####
  90.  
  91. default:
  92.     @echo "Specify a target configuration"
  93.  
  94. clean:
  95.     -rm *.o *~
  96.  
  97. targets: $(LIBDIR)/$(GLU_LIB)
  98.  
  99. # Make typical .a file:
  100. $(LIBDIR)/libMesaGLU.a: $(OBJECTS)
  101.     ar $(ARFLAGS) $@ $(OBJECTS)
  102.     $(RANLIB) $@
  103.  
  104. # Make SGI IRIX 5.x DSO:
  105. $(LIBDIR)/libMesaGLU.so: $(OBJECTS)
  106.     ld -shared -all $(OBJECTS) -o $@
  107.  
  108. # Make Linux ELF shared library:
  109. $(LIBDIR)/libMesaGLU.so.1: $(OBJECTS)
  110.     gcc -shared $(OBJECTS) -o $@
  111.  
  112.  
  113. include ../Make-config
  114.  
  115. include depend
  116.  
  117.  
  118.  
  119. #
  120. # Run 'make depend' to update the dependencies if you change what's included
  121. # by any source file.
  122. depend: $(SOURCES)
  123.     makedepend -fdepend -Y -I../include $(SOURCES)
  124.  
  125.